package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontSalesMoneyBalanceLog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontSalesMoneyBalanceLog"
 */

public abstract class BaseAnteFrontSalesMoneyBalanceLog  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontSalesMoneyBalanceLog";
	public static String PROP_SEQ_NO = "seqNo";
	public static String PROP_TOTAL_STRIKE_MONEY = "totalStrikeMoney";
	public static String PROP_SALES_MONEY = "salesMoney";
	public static String PROP_COUNTER_ID = "counterId";
	public static String PROP_REAL_SALES_MONEY = "realSalesMoney";
	public static String PROP_BALANCE_TIME = "balanceTime";
	public static String PROP_IS_BALANCE = "isBalance";
	public static String PROP_REPORT_SALES_MONEY = "reportSalesMoney";


	// constructors
	public BaseAnteFrontSalesMoneyBalanceLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontSalesMoneyBalanceLog (java.lang.Integer seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontSalesMoneyBalanceLog (
		java.lang.Integer seqNo,
		java.lang.String counterId,
		java.lang.Double salesMoney,
		java.lang.Double realSalesMoney,
		java.lang.Integer isBalance,
		java.lang.Double reportSalesMoney,
		java.lang.Double totalStrikeMoney,
		java.util.Date balanceTime) {

		this.setSeqNo(seqNo);
		this.setCounterId(counterId);
		this.setSalesMoney(salesMoney);
		this.setRealSalesMoney(realSalesMoney);
		this.setIsBalance(isBalance);
		this.setReportSalesMoney(reportSalesMoney);
		this.setTotalStrikeMoney(totalStrikeMoney);
		this.setBalanceTime(balanceTime);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer seqNo;

	// fields
	private java.lang.String counterId;
	private java.lang.Double salesMoney;
	private java.lang.Double realSalesMoney;
	private java.lang.Integer isBalance;
	private java.lang.Double reportSalesMoney;
	private java.lang.Double totalStrikeMoney;
	private java.util.Date balanceTime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Integer getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Integer seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CounterId
	 */
	public java.lang.String getCounterId () {
		return counterId;
	}

	/**
	 * Set the value related to the column: CounterId
	 * @param counterId the CounterId value
	 */
	public void setCounterId (java.lang.String counterId) {
		this.counterId = counterId;
	}



	/**
	 * Return the value associated with the column: SalesMoney
	 */
	public java.lang.Double getSalesMoney () {
		return salesMoney;
	}

	/**
	 * Set the value related to the column: SalesMoney
	 * @param salesMoney the SalesMoney value
	 */
	public void setSalesMoney (java.lang.Double salesMoney) {
		this.salesMoney = salesMoney;
	}



	/**
	 * Return the value associated with the column: RealSalesMoney
	 */
	public java.lang.Double getRealSalesMoney () {
		return realSalesMoney;
	}

	/**
	 * Set the value related to the column: RealSalesMoney
	 * @param realSalesMoney the RealSalesMoney value
	 */
	public void setRealSalesMoney (java.lang.Double realSalesMoney) {
		this.realSalesMoney = realSalesMoney;
	}



	/**
	 * Return the value associated with the column: IsBalance
	 */
	public java.lang.Integer getIsBalance () {
		return isBalance;
	}

	/**
	 * Set the value related to the column: IsBalance
	 * @param isBalance the IsBalance value
	 */
	public void setIsBalance (java.lang.Integer isBalance) {
		this.isBalance = isBalance;
	}



	/**
	 * Return the value associated with the column: ReportSalesMoney
	 */
	public java.lang.Double getReportSalesMoney () {
		return reportSalesMoney;
	}

	/**
	 * Set the value related to the column: ReportSalesMoney
	 * @param reportSalesMoney the ReportSalesMoney value
	 */
	public void setReportSalesMoney (java.lang.Double reportSalesMoney) {
		this.reportSalesMoney = reportSalesMoney;
	}



	/**
	 * Return the value associated with the column: TotalStrikeMoney
	 */
	public java.lang.Double getTotalStrikeMoney () {
		return totalStrikeMoney;
	}

	/**
	 * Set the value related to the column: TotalStrikeMoney
	 * @param totalStrikeMoney the TotalStrikeMoney value
	 */
	public void setTotalStrikeMoney (java.lang.Double totalStrikeMoney) {
		this.totalStrikeMoney = totalStrikeMoney;
	}



	/**
	 * Return the value associated with the column: BalanceTime
	 */
	public java.util.Date getBalanceTime () {
		return balanceTime;
	}

	/**
	 * Set the value related to the column: BalanceTime
	 * @param balanceTime the BalanceTime value
	 */
	public void setBalanceTime (java.util.Date balanceTime) {
		this.balanceTime = balanceTime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontSalesMoneyBalanceLog)) return false;
		else {
			AnteFrontSalesMoneyBalanceLog anteFrontSalesMoneyBalanceLog = (AnteFrontSalesMoneyBalanceLog) obj;
			if (null == this.getSeqNo() || null == anteFrontSalesMoneyBalanceLog.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontSalesMoneyBalanceLog.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}